﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace MidimediaFinder
{
    public class CommentViewModel : INotifyPropertyChanged
    {
        private string Username;
        private string Comment;
        private string Datetime;
        private Uri Star1, Star2, Star3, Star4, Star5;

        public CommentViewModel()
            : base()
        {
            
        }
        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string _Username
        {
            get
            {
                return Username;
            }
            set
            {
                if (value != Username)
                {
                    Username = value;
                    NotifyPropertyChanged("Username");
                }
            }
        }

        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string _Comment
        {
            get
            {
                return Comment;
            }
            set
            {
                if (value != Comment)
                {
                    Comment = value;
                    NotifyPropertyChanged("Comment");
                }
            }
        }

        /// <summary>
        /// Sample ViewModel property; this property is used in the view to display its value using a Binding.
        /// </summary>
        /// <returns></returns>
        public string _Datetime
        {
            get
            {
                return Datetime;
            }
            set
            {
                if (value != Datetime)
                {
                    Datetime = value;
                    NotifyPropertyChanged("Datetime");
                }
            }
        }

        public Uri _Star1
        {
            get
            {
                return Star1;
            }
            set
            {
                if (value != Star1)
                {
                    Star1 = value;
                    NotifyPropertyChanged("Star1");
                }
            }
        }

        public Uri _Star2
        {
            get
            {
                return Star2;
            }
            set
            {
                if (value != Star2)
                {
                    Star2 = value;
                    NotifyPropertyChanged("Star2");
                }
            }
        }
        public Uri _Star3
        {
            get
            {
                return Star3;
            }
            set
            {
                if (value != Star3)
                {
                    Star3 = value;
                    NotifyPropertyChanged("Star3");
                }
            }
        }

        public Uri _Star4
        {
            get
            {
                return Star4;
            }
            set
            {
                if (value != Star4)
                {
                    Star4 = value;
                    NotifyPropertyChanged("Star4");
                }
            }
        }

        public Uri _Star5
        {
            get
            {
                return Star5;
            }
            set
            {
                if (value != Star5)
                {
                    Star5 = value;
                    NotifyPropertyChanged("Star5");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}